<template>
  <div >
    <group label-width="5em" >
      <cell title="修改密码" link="/eaditpwd"></cell>
    </group>

    <group label-width="5em" >
      <cell title="退出" @click.native="logout"></cell>
    </group>
  </div>
</template>

<script>
  import { Group,Cell, } from 'vux'
    export default {
      name: "setting",
      components: {
        Group,
        Cell,
      },
      data(){
        return{

        }
      },
      methods:{
        logout(){
          this.$store.dispatch('LogOut').then(() => {
            location.reload() // 为了重新实例化vue-router对象 避免bug
          })
        }
      }
    }
</script>

<style lang="less" scoped>

</style>
